package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.LendOrderDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;

@Component
public interface LendOrderDetailMapperExt extends LendOrderDetailMapper {

	LendOrderDetail queryLendOrderDetailByDetailRequestNoForUpdate(
            @Param("detailRequestNo") String detailRequestNo);

	List<LendOrderDetail> queryLendOrderDetailByProjectId(@Param("projectId") Long projectId);
	
	List<LendOrderDetail> queryFailedLendOrderDetailByProjectId(@Param("projectId") Long projectId);

	Integer queryLendOrderDetailNotSuccessNumByProjectId(@Param("projectId") Long projectId);

	List<LendOrderDetail> queryLendOrderDetailByBankLendResultQueryJob();

	List<LendOrderDetail> queryLendOrderDetailByBankLendFailedJob();

	LendOrderDetail queryLendOrderDetailByDetailRequestNo(
			@Param("detailRequestNo") String detailRequestNo);
}
